<div ng-if="pagedata.op=='copy'">
<img src="../core/resource/images/timg.jpg" style="width:100%">
</div>
<div ng-if="pagedata.op=='pay'" class='fui-page fui-page-current order-pay-page'>
    <div class="fui-header">
         <div class="title" >支付订单</div>
    </div>
    <div class='fui-content margin'>
        <div class="fui-cell-group">
            <div class="fui-cell">
                <div class="fui-cell-label">支付单号</div>
                <div class="fui-cell-info">{{pagedata.tid}}</div>
            </div>
            <div class="fui-cell">
                <div class="fui-cell-label">订单金额</div>
                <div class="fui-cell-info"><span class='text-danger'>￥{{pagedata.fee}}</span></div>
            </div>
        </div>
        <div class='fui-list-group' style="margin-top:10px;">
			<a ng-show="pagedata.fee == 0" class="btn btn-success block" href="javascript:" ng-click="pagedata.pay('credit')">确认支付</a>
			<div ng-show="pagedata.fee>0">
				<div class='fui-list pay-btn' ng-show="in_array('credit',pagedata.pay_types)" ng-click="pagedata.pay('credit')">
					<div class='fui-list-media'>
						<i class="icon jinyunicon icon-caifua credit"></i>
					</div>
					<div class='fui-list-inner'>
						<div class="title">余额支付</div>
						<div class="subtitle">当前账户余额: <span class='text-danger'>￥{{pagedata.credit}}</span>
						</div>
					</div>
					<div class='fui-list-angle'><span class="angle"></span></div>
				</div>
				<div class='fui-list pay-btn' ng-show="in_array('wechat',pagedata.pay_types)" ng-click="pagedata.pay('wechat')">
					<div class='fui-list-media'>
						<i class='icon icon-weixin1 wechat'></i>
					</div>
					<div class='fui-list-inner'>
						<div class="title">微信支付</div>
						<div class="subtitle">微信安全支付</div>
					</div>
					<div class='fui-list-angle'><span class="angle"></span></div>
				</div>
				<div class='fui-list pay-btn' ng-show="in_array('alipay',pagedata.pay_types)" ng-click="pagedata.pay('alipay')">
					<div class='fui-list-media'>
						<i class='icon icon-qianbaopengyou wechat'></i>
					</div>
					<div class='fui-list-inner'>
						<div class="title">支付宝支付</div>
						
					</div>
					<div class='fui-list-angle'><span class="angle"></span></div>
				</div>
			</div>
         </div>
    </div>
</div>
<script>
scope.pagedata.pay=function(type){
	scope.tool.pay(scope.pagedata.id,function(res){
		scope.message(res.message,'success',scope.pagedata.forward_url);
	},type);
}
</script>